package com.kinyx.demo.entities.impl;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;

import com.kinyx.demo.enums.impl.DemoEnum;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
public class TypesEnumEntity {

	@Id
	@Column(nullable = false, updatable = false, length = 32)
	private String c00;

	// =========================== Enum =========================== //
	private DemoEnum j01_Enum;

	@Column(nullable = true, precision = 9, scale = 3, length = 12)
	private DemoEnum j10_Enum;
	@Column(nullable = false, precision = 9, scale = 3, length = 12)
	private DemoEnum j11_Enum;

	@Enumerated(EnumType.ORDINAL)
	@Column(nullable = true, precision = 9, scale = 3, length = 12)
	private DemoEnum j20_Enum;
	@Enumerated(EnumType.ORDINAL)
	@Column(nullable = false, precision = 9, scale = 3, length = 12)
	private DemoEnum j21_Enum;

	@Enumerated(EnumType.STRING)
	@Column(nullable = true, precision = 9, scale = 3, length = 12)
	private DemoEnum j30_Enum;
	@Enumerated(EnumType.STRING)
	@Column(nullable = false, precision = 9, scale = 3, length = 12)
	private DemoEnum j31_Enum;

}
